<?xml version="1.0" encoding="UTF-8"?>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

<url>
  <loc>{:request()->domain()}</loc>
  <lastmod>{:date("Y-m-d", $Think.server.request_time)}T{:date("H:i:s", $Think.server.request_time)}+00:00</lastmod>
  <priority>1.00</priority>
</url>

  {cms:channellist type="top" row="20" id="nav" condition="1=isnav"}
  <url>
    <loc>{$nav.fullurl}</loc>
    <lastmod>{:date("Y-m-d", $Think.server.request_time)}T{:date("H:i:s", $Think.server.request_time)}+00:00</lastmod>
    <priority>0.80</priority>
  </url>
  {/cms:channellist}

  {cms:channellist type="top" row="20" id="nav" condition="1=isnav"}
  {cms:channellist typeid="nav['id']" type="son" id="sub" condition="1=isnav"}
  <url>
    <loc>{$sub.fullurl}</loc>
    <lastmod>{:date("Y-m-d", $Think.server.request_time)}T{:date("H:i:s", $Think.server.request_time)}+00:00</lastmod>
    <priority>0.64</priority>
  </url>
  {/cms:channellist}
  {/cms:channellist}

  {cms:channellist type="top" row="200" id="nav" condition="1=isnav"}
  {if !$nav.has_child}
  {cms:arclist channel="$nav.id" row="999999" flag="" type="sons" id="item" orderby="weigh" orderway="desc" addon="true"}
  <url>
    <loc>{if $item.outlink}{$item.outlink}{else}{$item.fullurl}{/if}</loc>
    <lastmod>{:date("Y-m-d", $Think.server.request_time)}T{:date("H:i:s", $Think.server.request_time)}+00:00</lastmod>
    <priority>0.64</priority>
  </url>
  {/cms:arclist}
  {/if}

  {cms:channellist typeid="nav['id']" type="son" id="sub" condition="1=isnav"}
  {if 0 == $nav.items && 0 < $sub.items}
  {cms:arclist channel="$sub.id" row="999999" flag="" type="sons" id="item" orderby="weigh" orderway="desc" addon="true"}
  <url>
    <loc>{if $item.outlink}{$item.outlink}{else}{$item.fullurl}{/if}</loc>
    <lastmod>{:date("Y-m-d", $Think.server.request_time)}T{:date("H:i:s", $Think.server.request_time)}+00:00</lastmod>
    <priority>0.64</priority>
  </url>
  {/cms:arclist}
  {/if}

  {/cms:channellist}
  {/cms:channellist}

</urlset>